Skip to content

feat: add avro reader to registry #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 7, 2025
Merged

Conversation

wgtmac
Copy link
Member

@wgtmac wgtmac commented Jun 30, 2025

  • Added a function to register the Avro reader impl to the registery.
  • Removed reader adapters for ArrowArray and StructLike.
  • Added simple test cases for Avro reader.
  • Removed demo code.

@wgtmac wgtmac force-pushed the avro_reader_e2e branch from c97f602 to 001a86d Compare June 30, 2025 14:28
Copy link
Member

@mapleFU mapleFU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General LGTM

@wgtmac wgtmac force-pushed the avro_reader_e2e branch from 4e46670 to 6efd0a1 Compare July 1, 2025 07:18
@wgtmac wgtmac force-pushed the avro_reader_e2e branch from 6efd0a1 to ef683f3 Compare July 1, 2025 07:42
@wgtmac wgtmac force-pushed the avro_reader_e2e branch from ef683f3 to fb999f4 Compare July 1, 2025 07:44
@wgtmac
Copy link
Member Author

wgtmac commented Jul 1, 2025

@Fokko @Xuanwo Could you help review this? Thanks!

using Data =
std::variant<std::monostate, ArrowArray, std::reference_wrapper<const StructLike>>;
virtual Result<Data> Next() = 0;
/// \return std::nullopt if the reader has no more data, otherwise `ArrowArray`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: can ArrowArray be empty? Does empty array means ending? Or it can have data left?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contract of ArrowArray is that data can be empty but it does not mean the end of file.

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this! The community has reached consensus on this change. Let's move forward!

@Xuanwo Xuanwo merged commit c06c261 into apache:main Jul 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants